var util = require('./utils/util.js');
var api = require('./config/api.js');
var user = require('./utils/user.js');
App({
  onLaunch: function () {
    //调用API从本地缓存中获取数据
    user.checkLogin().then(res => {
      this.globalData2.hasLogin = true;
    }).catch(() => {
      this.globalData2.hasLogin = false;
    });
  },

  globalData2: {
    hasLogin: false,
    userid:"",  
  },

  globalData1: {
    //adminUserViewId: "",
    token: "",
    userInfo: null,
    BaseURL: "http://192.168.0.107:8080",
    // 服务器地址          

     ImageURL: "http://syl2018.vipgz1.idcfengye.com/",
    //  hostURL:"http://193.112.68.182:8090/"
     //hostURL: "http://192.168.43.254:8090/"
     hostURL:"http://spf.vipgz1.idcfengye.com/"

  },

 

  })